﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Forma1.aspx.cs" MasterPageFile="~/Site.master"
    Inherits="Forma_1" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <fieldset>
        <%-- Header Solicitante --%>
        <legend><strong>Datos Personales</strong></legend>
        <div class="col_12">
            <div class="col_7">
                <%-- Semestre Próximo a Cursar --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_1" runat="server"> Semestre pr&oacute;ximo a cursar </asp:Label>
                    <div class="controls">
                        <asp:DropDownList ID="Datos_SemestreProximo" runat="server">
                            <asp:ListItem Selected="True"> </asp:ListItem>
                            <asp:ListItem>Remedial (cero)</asp:ListItem>
                            <asp:ListItem>Primero</asp:ListItem>
                            <asp:ListItem>Segundo</asp:ListItem>
                            <asp:ListItem>Tercero</asp:ListItem>
                            <asp:ListItem>Cuarto</asp:ListItem>
                            <asp:ListItem>Quinto</asp:ListItem>
                            <asp:ListItem>Sexto</asp:ListItem>
                            <asp:ListItem>S&eacute;ptimo</asp:ListItem>
                            <asp:ListItem>Octavo</asp:ListItem>
                            <asp:ListItem>Noveno</asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <%-- Correo Electronico --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_2" runat="server"> Correo Personal </asp:Label>
                    <div class="controls">
                        <asp:TextBox ID="Datos_CorreoPersonal" ValidationGroup="Forma1Validation"
                            runat="server" />
                        <asp:RegularExpressionValidator ID="RegExpCorreoPersonal" ControlToValidate="Datos_CorreoPersonal"
                            Display="Dynamic" EnableClientScript="True" ValidationExpression="^^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$"
                            Text="<img src='../Images/cross.png' alt='cross'>" ErrorMessage="Formato de correo electr&oacute;nico incorrecto."
                            ValidationGroup="Forma1Validation" runat="server"></asp:RegularExpressionValidator>
                    </div>
                </div>
                <%-- Carrera --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_3" for="Alumno_Carrera" runat="server"> Carrera </asp:Label>
                    <div class="controls">
                        <asp:TextBox type="text" ID="Alumno_Carrera" ValidationGroup="Forma1Validation" data-provide="typeahead" 
                        data-source="[&quot;ARQ&quot;,&quot;IA&quot;,&quot;IAB&quot;,&quot;IIA&quot;,&quot;LCS&quot;,&quot;LEC&quot;,&quot;LEF&quot;,&quot;LEP&quot;,&quot;LLE&quot;,&quot;LP&quot;,&quot;LPL&quot;,&quot;LRI&quot;,&quot;LCM&quot;,&quot;LCC&quot;,&quot;LMI&quot;,&quot;LDC&quot;,&quot;LDF&quot;,&quot;LDP&quot;,&quot;LED&quot;,&quot;LAD&quot;,&quot;LDI&quot;,&quot;IBN&quot;,&quot;IBT&quot;,&quot;IC&quot;,&quot;IDA&quot;,&quot;IDS&quot;,&quot;IFI&quot;,&quot;IID&quot;,&quot;IIN&quot;,&quot;IIS&quot;,&quot;IMA&quot;,&quot;IME&quot;,&quot;IMI&quot;,&quot;IMT&quot;,&quot;IQA&quot;,&quot;IQP&quot;,&quot;LCQ&quot;,&quot;LAC&quot;,&quot;LAE&quot;,&quot;LAF&quot;,&quot;LATI&quot;,&quot;LCDE&quot;,&quot;LCPF&quot;,&quot;LDN&quot;,&quot;LEM&quot;,&quot;LIN&quot;,&quot;LLN&quot;,&quot;LMC&quot;,&quot;LPM&quot;,&quot;LPO&quot;,&quot;IMD&quot;,&quot;LAS&quot;,&quot;LCE&quot;,&quot;LNB&quot;,&quot;LPS&quot;,&quot;MC&quot;,&quot;MO&quot;,&quot;INT&quot;,&quot;ISC&quot;,&quot;ISD&quot;,&quot;ITC&quot;,&quot;ITE&quot;,&quot;ITIC&quot;,&quot;ITM&quot;,&quot;ITS&quot;,&quot;IQS&quot;]" runat="server" />
                        <asp:RegularExpressionValidator ID="RegExpCarrera" ControlToValidate="Alumno_Carrera" 
                            Display="Dynamic" EnableClientScript="True" ValidationExpression="^([a-zA-Z]){2,4}$"
                            Text="<img src='../Images/cross.png' alt='cross'>" ErrorMessage="Nombre de carrera inv&aacute;lida."
                            ValidationGroup="Forma1Validation" runat="server"></asp:RegularExpressionValidator>
                    </div>
                </div>
                <%-- Promedio de los últimos dos semestres --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_5" for="Datos_PromSemA1" runat="server"> Promedio de los &uacute;ltimos dos semestres </asp:Label>
                    <div class="controls">
                        <asp:TextBox class="input-mini" type="text" ID="Datos_PromSemA1" ValidationGroup="Forma1Validation"
                            runat="server" /> &nbsp;&nbsp;
                        <asp:TextBox class="input-mini" type="text" ID="Datos_PromSemA2" ValidationGroup="Forma1Validation"
                            runat="server" />
                        <span id="promedioshelp" class="label label-info">?</span>
                        <asp:RangeValidator ID="RangePromSemA1" runat="server" MinimumValue="0" MaximumValue="100" EnableViewState="False"
                            Display="Dynamic" Type="Integer" EnableClientScript="True" ControlToValidate="Datos_PromSemA1"
                            Text="<img src='../Images/cross.png' alt='cross'>" ErrorMessage="Calificaci&oacute;n no v&aacute;lida."
                            ValidationGroup="Forma1Validation"></asp:RangeValidator>
                        <asp:RangeValidator ID="RangePromSemA2" runat="server" MinimumValue="0" MaximumValue="100" 
                            Display="Dynamic" Type="Integer" EnableClientScript="True" ControlToValidate="Datos_PromSemA2"
                            Text="<img src='../Images/cross.png' alt='cross'>" ErrorMessage="Calificaci&oacute;n no v&aacute;lida."
                            ValidationGroup="Forma1Validation"></asp:RangeValidator>
                    </div>
                </div>
                <%-- Domicilio actual --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_6" for="Datos_DomicilioActual" runat="server"> Domicilio actual </asp:Label>
                    <div class="controls">
                        <asp:TextBox type="text" ID="Datos_DomicilioActual" runat="server" />
                    </div>
                </div>
                <%-- Teléfono --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_7" for="Datos_Telefono" runat="server"> Tel&eacute;fono </asp:Label>
                    <div class="controls">
                        <asp:TextBox type="text" ID="Datos_Telefono" ValidationGroup="Forma1Validation" runat="server" />
                        <span id="telhelp" class="label label-info">?</span>
                        <asp:RegularExpressionValidator ID="RegExpTelefono" ControlToValidate="Datos_Telefono"
                            Display="Dynamic" EnableClientScript="True" ValidationExpression="^([0-9]){10}$"
                            Text="<img src='../Images/cross.png' alt='cross'>" ErrorMessage="N&uacute;mero telef&oacute;nico inv&aacute;lido."
                            ValidationGroup="Forma1Validation" runat="server"></asp:RegularExpressionValidator>
                    </div>
                </div>
                <%-- Celular --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_9" for="Datos_Celular" runat="server">Celular </asp:Label>
                    <div class="controls">
                        <asp:TextBox type="text" ID="Datos_Celular" runat="server" />
                        <span id="celhelp" class="label label-info">?</span>
                        <asp:RegularExpressionValidator ID="RegExpCelular" ControlToValidate="Datos_Celular"
                            Display="Dynamic" EnableClientScript="True" ValidationExpression="^([0-9]){10}$"
                            Text="<img src='../Images/cross.png' alt='cross'>" ErrorMessage="N&uacute;mero de celular inv&aacute;lido."
                            ValidationGroup="Forma1Validation" runat="server"></asp:RegularExpressionValidator>
                    </div>
                </div>
                <%-- % Beca --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_10" for="Datos_PorcentajeBeca" runat="server"> % Beca Actual </asp:Label>
                    <div class="controls">
                        <asp:DropDownList ID="Datos_PorcentajeBeca" runat="server">
                            <asp:ListItem> </asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <%-- % Crédito --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_11" for="Datos_PorcentajeCredito" runat="server"> % Cr&eacute;dito Actual </asp:Label>
                    <div class="controls">
                        <asp:DropDownList ID="Datos_PorcentajeCredito" runat="server">
                            <asp:ListItem> </asp:ListItem>
                        </asp:DropDownList>
                    </div>
                </div>
                <%-- Promedio Acumulado --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_12" for="Datos_PromAcumulado" runat="server"> Promedio acumulado </asp:Label>
                    <div class="controls">
                        <asp:TextBox type="text" ID="Datos_PromAcumulado" ValidationGroup="Forma1Validation"
                            runat="server" />
                        <span id="promediohelp" class="label label-info">?</span>
                        <asp:RangeValidator ID="RegExpPromAcumulado" runat="server" MinimumValue="0" MaximumValue="100"
                            Display="Dynamic" Type="Integer" EnableClientScript="True" ControlToValidate="Datos_PromAcumulado"
                            Text="<img src='../Images/cross.png' alt='cross'>" ErrorMessage="Promedio Acumulado no v&aacute;lida."
                            ValidationGroup="Forma1Validation"></asp:RangeValidator>
                    </div>
                </div>
                <%-- ¿Es Foráneo? --%>
                <div class="control-group">
                    <asp:Label CssClass="control-label" ID="label_13" for="Datos_Foraneo" runat="server"> &#191;Estudiante For&aacute;neo? </asp:Label>
                    <div class="controls">
                        <label class="radio">
                            <asp:RadioButtonList ID="Datos_Foraneo" runat="server">
                                <asp:ListItem Selected="True" Value="Sí">S&iacute;</asp:ListItem>
                                <asp:ListItem Value="No">No</asp:ListItem>
                            </asp:RadioButtonList>
                        </label>
                    </div>
                </div>
            </div>
            <!-- END SPAN7 -->
            <div class="col_5">
                <div id="errordiv" class="alert alert-error" style="display: none">
                </div>
                <asp:ValidationSummary ID="CrearCuentaValidationSummary" CssClass="alert alert-error"
                    DisplayMode="BulletList" EnableClientScript="True" runat="server" ValidationGroup="Forma1Validation"
                    HeaderText="<strong>Revisa los siguientes errores e intenta de nuevo:</strong>" />
            </div>
            <%-- END SPAN5 --%>
        </div>
        <!-- END ROW -->
                <%-- Botón de guardar cambios en la solicitud --%>
                <div class="col_12">
                <div class="form-actions" style="text-align: right">
                    <asp:Button CssClass="btn btn-primary" ID="InsertData_Button" runat="server" Text="Guardar Cambios"
                        ValidationGroup="Forma1Validation" OnClick="InsertData" />
                </div>                    
                </div>

    </fieldset>
    <!-- </form> -->

    <script type="text/javascript">
        $('#mf1').addClass("active");

        $(function () {
            $("#telhelp").popover({
                title: 'Tel&eacute;fono',
                content: "LADA + N&uacute;mero: <br />ej.8183582000 (10 números)"
            });

            $("#celhelp").popover({
                title: 'Tel&eacute;fono',
                content: "LADA + N&uacute;mero: <br />ej.81101234568 (10 números)"
            });
            $("#promedioshelp").popover({
                title: 'Promedio',
                content: "Deben de estar representados en escala de 1 a 100. Si tu escuela de procedencia manejan decimales, hacer la conversión. Ej. 8.9 = 89."
            });

            $("#promediohelp").popover({
                title: 'Promedio',
                content: "Deben de estar representados en escala de 1 a 100. Si tu escuela de procedencia manejan decimales, hacer la conversión. Ej. 8.9 = 89."
            });

            $('.typeahead').typeahead();

            // Arregla el error de padding del Label
            $('#ctl00_MainContent_valSum').css('padding-right', '14px');
        });

    </script>
</asp:Content>
